package com.ruoyi.locksApi.mapper;

import com.ruoyi.locksApi.domain.WechatMiniProgramApiUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface WechatMiniProgramApiMapper {
    
    WechatMiniProgramApiUser selectByOpenId(@Param("openid") String openid);
    
    WechatMiniProgramApiUser selectByUnionId(@Param("unionid") String unionid);
    
    int insert(WechatMiniProgramApiUser user);
    
    int updateByOpenId(WechatMiniProgramApiUser user);
    
    int updatePhone(@Param("openid") String openid, @Param("phone") String phone);
} 